package com.lin.missyou.service;

import com.lin.missyou.model.Activity;
import com.lin.missyou.repository.ActivityRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author gcq
 * @Create 2021-11-03
 */
@Service
public class ActivityService {

    @Autowired
    ActivityRepository activityRepository;
    public Activity getByName(String name){
        return activityRepository.findByName(name);
    }
}
